//
//  BaseModel.m
//  XCF
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 GroupNine. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

/**
 *  容错方法
 */
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
//防止部分值为nil而不是null时crash
- (void)setNilValueForKey:(NSString *)key
{
    
}
//重写初始化方法,初始化时直接把字典加到model里:
- (instancetype)initWithDic:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

@end
